package com.ilearn.autocomplie.pattern;

import org.junit.Test;

import java.util.regex.Pattern;

/**
 * @Project: seb-core
 * @Description:
 * @Version 1.0
 * @Throws SystemException:
 * @Author: <li>2019/1/13 lyndon Create 1.0
 * @Copyright (c)2018-2018 中央结算公司，版权所有
 * @Modified By:
 */
public class PatternDemo {

    private static final Pattern FIELD_PATTERN = Pattern.compile("[^\n]+=[^\n]+;");

    @Test
    public void testParrern(){
        String a = "private String id = null;";

        final boolean matches = FIELD_PATTERN.matcher(a).matches();

        System.out.println(matches);

    }

}
